package com.googlecode.wmlynar.gwtbeans.gen;

import java.util.List;

import com.thoughtworks.qdox.model.JavaClass;

/**
 * 
 * @author Wojciech Mlynarczyk (wmlynar@gmail.com)
 * 
 */
public class Mapping {

    private String name;

    private String classAName;
    private JavaClass classA;

    private String classBName;
    private JavaClass classB;

    private List<Field> fields;

    private boolean isAutoMapping;

    public final String getClassAName() {
        return classAName;
    }

    public final void setClassAName(final String classAName) {
        this.classAName = classAName;
    }

    public final JavaClass getClassA() {
        return classA;
    }

    public final void setClassA(final JavaClass classA) {
        this.classA = classA;
    }

    public final String getClassBName() {
        return classBName;
    }

    public final void setClassBName(final String classBName) {
        this.classBName = classBName;
    }

    public final JavaClass getClassB() {
        return classB;
    }

    public final void setClassB(final JavaClass classB) {
        this.classB = classB;
    }

    public final List<Field> getFields() {
        return fields;
    }

    public final void setFields(final List<Field> fields) {
        this.fields = fields;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setAutoMapping(final boolean isAutoMapping) {
        this.isAutoMapping = isAutoMapping;
    }

    public boolean isAutoMapping() {
        return isAutoMapping;
    }

}
